//
//  CustomAnnotationView.h
//  Meroad
//
//  Created by StariMac1 on 2019/3/20.
//  Copyright © 2019 郭孝通. All rights reserved.
//

#import <MAMapKit/MAMapKit.h>
#import "CustomCalloutView.h"
#import "ToiletModel.h"

NS_ASSUME_NONNULL_BEGIN

@protocol CustomAnnotationDelegate <NSObject>

@required
- (void) DidSelectedAnnotation:(MAPointAnnotation *)annotation;

- (void) removePolyline;

@end

@interface CustomAnnotationView : MAAnnotationView

@property (nonatomic, readonly) CustomCalloutView *calloutView;
@property (nonatomic, weak) ToiletModel *model;
@property (nonatomic, strong) MAPolyline *polyline;
@property (nonatomic, weak) id <CustomAnnotationDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
